<div id="maincontent">
    <div id="maincontent_inner">
        <div id="sidebar">
            <div class="menu single">
                <ul>
                    <li><a href="#">保养项目管理</a>
                        <ul>
                            <li class="current"><a href="<?php echo site_url("c=care&m=index"); ?>">保养项目列表</a></li>
                            <li><a href="<?php echo site_url("c=care&m=add"); ?>">添加保养项目</a></li>
                        </ul>
                    </li>
                </ul>
            </div>
        </div>
        <div id="content">
            <div class="title">保养项目列表</div>
            <div class="infoarea">
                <form action="<?php echo site_url("c=care&m=index"); ?>" method="post">
                <div class="box">保养项目ID：<input type="text" size="16" name="repairid"/> 保养项目名称：<input type="text" size="16" name="repairname"/> <input type="submit" class="btn" value="查询"/>
                    <div style="float:right"><input type="button" class="btn" value="添加保养项目" onclick="window.open('<?php echo site_url("c=care&m=add"); ?>','_parent');" /></div>
                </div>
                </form>

                <table border="0" cellspacing="0" cellpadding="0" width="100%" class="stylized">
                    <tr>
                        <th>保养项目ID</th>
                        <th>保养项目名称</th>
                        <th>操作</th>
                    </tr>
                    <?php foreach ($list as $repaire): ?>
                    <tr>
                        <td><?php echo $repaire['repairid'] ?></td>
                        <td><?php echo $repaire['repairname'] ?></td>
                        <td><a href="<?php echo site_url("c=care&m=edit&repairid=".$repaire['repairid']); ?>">编辑</a> | <a href="<?php echo site_url("c=care&m=delete&repairid=".$repaire['repairid']); ?>" onclick="return confirm('确认要删除当前记录吗？')">删除</a></td>
                    </tr>
                    <?php endforeach ?>
                </table>
                <div id="pager" class="pagebar">
                    <span class="blankspan">总计<b><?php echo $count?></b>个记录</span><?php echo $pagelink;?>
                </div>
            </div>
        </div>
    </div>
</div>
